<div class="protocols index">
<p class='contentmenu'>
    [ <?php echo $html->link(__("Add Grade",true),array('action'=>'add')); ?> ]
    [ <?php echo $html->link(__("Manage Job Scheme",true),array('action'=>'index','controller'=>'schemes')); ?> ]
</p>
<h2><?php __('Grades');?></h2>

<table cellpadding="0" cellspacing="0">
<tr>
     <th width="3%"><?php __('No')?></th>
    <th><?php echo $paginator->sort(__('Grade Title',true),'protocol_title');?></th>
    <th><?php echo $paginator->sort('rank');?></th>
    <th class="actions"><?php __('Actions');?></th>
</tr>
<?php
if(!count($protocols)) 
    echo "<tr><td colspan='4'>".__('No record found',true)."</td></tr>";

if($paginator->current() == '1') $i = 0;
else $i = $paginator->current() * $this->params['paging']['Protocol']['options']['limit'] - $this->params['paging']['Protocol']['options']['limit']; 

foreach ($protocols as $protocol):
    $class = null;
    if ($i++ % 2 == 0) {
        $class = ' class="altrow"';
    }
?>
    <tr<?php echo $class;?>>
        <td><?php echo $i.'. '?></td>
        <td>
            <?php echo $protocol['Protocol']['protocol_title']; ?>
        </td>
        <td>
            <?php echo $protocol['Protocol']['rank']; ?>
        </td>
        <td class="actions">
            <?php //echo $html->link($html->image('icons/view.gif',array('alt'=>'View Item','title'=>'View Item')), array('action'=>'view', $title['Title']['id']),array('escape'=>false)); ?>
            <?php echo $html->link($html->image('icons/edit.gif',array('alt'=>__('Edit',true),'title'=>__('Edit',true))), array('action'=>'edit', $protocol['Protocol']['id']),array('escape'=>false)); ?>
            <?php echo $html->link($html->image('icons/delete.gif',array('alt'=>__('Delete',true),'title'=>__('Delete',true))), array('action'=>'delete', $protocol['Protocol']['id']), array('escape'=>false), sprintf(__('Are you sure you want to delete no %s?', true), $i)); ?>
        </td>
    </tr>
<?php endforeach; ?>
</table>
</div>

<div class="paging">
    <?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 |  <?php echo $paginator->numbers();?>
    <?php echo $paginator->next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
</div>

